package com.ieng.kican.modules.system.rest;

import com.ieng.kican.api.model.Powers;
import com.ieng.kican.common.http.MR;
import com.ieng.kican.modules.system.service.PowersService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/system/permission")
public class PermissionController {
    @Autowired
    private PowersService powersService;

    @RequestMapping("/list")
    public MR<?> list(){
        return null;
    }

    @GetMapping
    public MR<?> one(@RequestParam ("id") Long id){
        return null;
    }

    @PostMapping
    public MR<?> add(@Validated @RequestBody Powers powers){
        return null;
    }

    @PutMapping
    public MR<?> update(@RequestBody Powers powers){
        return null;
    }

}
